import request from '@/utils/request-unimall'
import Qs from 'qs'

export function save(configs, prefix) {
  return request({
    method: 'post',
    url: "/web/codeGenerator/save",
    data: Qs.stringify({
      // _gp: 'admin.sysconfig',
      // _mt: 'save',
      configs,
      prefix
    })
  })
}

export function getData() {
  return request({
    method: 'get',
    url: "/web/codeGenerator/get-data",
    params: {
      // _gp: 'admin.sysconfig',
      // _mt: 'getData'
    }
  })
}
